/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data;

import java.util.Date;

/**
 *
 * @author bsmith
 */
public class BOMHeader {

    private String refresh_message;
    private String ID;
    private String main_ID;
    private String name;
    private String state_time_zone;
    private String time_zone;
    private String product_name;
    private String state;
    private Date refreshDate;   // property

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getMain_ID() {
        return main_ID;
    }

    public void setMain_ID(String main_ID) {
        this.main_ID = main_ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public String getRefresh_message() {
        return refresh_message;
    }

    public void setRefresh_message(String refresh_message) {
        this.refresh_message = refresh_message;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getState_time_zone() {
        return state_time_zone;
    }

    public void setState_time_zone(String state_time_zone) {
        this.state_time_zone = state_time_zone;
    }

    public String getTime_zone() {
        return time_zone;
    }

    public void setTime_zone(String time_zone) {
        this.time_zone = time_zone;
    }

    public void setRefreshDateFromMessage(Date refreshDate) {
        this.refreshDate = refreshDate;
    }

    public Date getRefreshDateFromMessage() {
        return this.refreshDate;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();

        sb.append("  ID:").append(getID()).append("\n");
        sb.append("  Main_ID:").append(getMain_ID()).append("\n");
        sb.append("  Name:").append(getName()).append("\n");
        sb.append("  Product_name:").append(getProduct_name()).append("\n");
        sb.append("  Refresh_message:").append(getRefresh_message()).append("\n");
        sb.append("  RefreshDateFromMessage:").append(getRefreshDateFromMessage()).append("\n");
        sb.append("  State:").append(getState()).append("\n");
        sb.append("  State_time_zone:").append(getState_time_zone()).append("\n");
        sb.append("  Time_zone:").append(getTime_zone()).append("\n");

        return sb.toString();
    }
}
